<?php

	/**
	 * @see Zend_Application_Resource_ResourceAbstract
	 */
	require_once 'Zend/Application/Resource/ResourceAbstract.php';
	
	/**
	 * @see Zend_Controller_Action_HelperBroker
	 */
	require_once 'Zend/Controller/Action/HelperBroker.php';
	
	
	class Bike_Resource_Viewrenderer extends Zend_Application_Resource_ResourceAbstract
	{
	    protected $_viewRenderer;

	    public function init()
	    {
	        return $this->getViewRenderer();
	    }

	    public function getViewRenderer()
	    {
	        if(is_null($this->_viewRenderer))
	        {
	        	$this->_viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
	        	$this->_viewRenderer->initView($path = null, $prefix = null, $this->getOptions());
	        }
	        return $this->_viewRenderer;
	    }
	}
